from django.db import models

# Create your models here.


class User(models.Model):
    username = models.CharField(max_length=100)
    age = models.IntegerField()
    class Meta:
        db_table = 'user'

class Book(models.Model):
    title = models.CharField(max_length=100)
    price = models.IntegerField()
    u_id = models.ForeignKey(User,on_delete=models.CASCADE)

    class Meta:
        db_table = 'book'













